package com.sohoappspot.sohosched.server.model;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.users.User;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class DbCustomer {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	protected User user;
	@Persistent
	protected String customerName;
	@Persistent
	protected Date createDate;

	public DbCustomer() {
		this.createDate = new Date();
	}

	public DbCustomer(User user, String customerName) {
		this();
		this.user = user;
		this.customerName = customerName;
	}

	public Long getId() {
		return this.id;
	}

	public User getUser() {
		return this.user;
	}

	public String getCustomerName() {
		return this.customerName;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
}